<div class="content page" data-page="updatePickup1" id="updatePickup1" action="updateFinancePickupApplicationWarehouse">
	<p class="location">
		当前位置: 提货列表 > 提货修改
	</p>
	<div class="content1">
		<script type="text/template" id="pickUpInfoTmpl">
			{@each datas as it}
				<div>
					<div class="dataTitle">
						<img src="../../../res/png/info_icon.png"> 订单信息
					</div>
					<div class="dataLine">
						<div>
							提货单号:<input type="text" name="pickupNumber" value="${it.pickupNumber}" readonly="true"/>
							<input type="hidden" name="pickupId" value="${it.pickupId}"/>
							<input type="hidden" name="productType" value="${it.productType}" />
							<input type="hidden" disabled="disabled" name="buyer" value="${it.buyer}" />
						</div>
						<div>
						</div>
					</div>
					
					<div class="dataTitle">
						<img src="../../../res/png/info_icon.png"> 买方信息
					</div>
					<div class="dataLine">
						<div class="requireInput">
							送货地址:<input type="text" name="deliveryAddress" isNull="1" codeName="送货地址" placeholder="请输入送货地址" value="${it.deliveryAddress}" />
						</div>
						<a href="javascript:void(0);" class="commonlyInfo">常用信息</a>
						<div>
							<input type="hidden" name="enterpriseId" />
	 						<input type="hidden" name="buyer" />
						</div>
					</div>
					<div class="dataLine">
						<div class="requireInput">
							提货方式:<select isNull="1" codeName="提货方式" name="pickupMethod"><option value="0">自提</option></select>
						</div>
						<div class="requireInput">
							提货时间:<input isNull="1" codeName="提货时间" readonly="readonly" onfocus="WdatePicker({})" type="text" name="pickupDate" value="${it.pickupDate}" placeholder="请输入提货时间" />
						</div>
					</div>
					<div class="dataLine">
						<div class="requireInput">
							联系人:<input type="text" name="contactPerson" isNull="1" codeName="联系人" placeholder="请输入联系人" value="${it.contactPerson}" />
						</div>
						<div class="requireInput">
							联系方式:<input type="text" name="contactMobile" isNull="1" codeName="联系方式" placeholder="请输入联系方式" value="${it.contactMobile}" />
						</div>
					</div>
					<div class="dataLine">
						<div style="width: 90%;">
							备注:<textarea name="remark" placeholder="请输入备注" >${it.remark}</textarea>
						</div>
					</div>
					<div class="dataLine">
						<div>
							<span style="width: 20%; display: inline-block; text-align: right;">增值税发票:<input type="radio" name="invoiceType" value="1"/></span>
							<span style="width: 20%; display: inline-block; text-align: right;">普通发票:<input type="radio" name="invoiceType" value="2"/></span>
							<span style="width: 20%; display: inline-block; text-align: right;">无:<input type="radio" name="invoiceType" value="0"/></span>
						</div>
						<div>
						</div>
					</div>
					<div class="invoiceInfo1">
							{@if it.invoiceType == 1}
							<div class="dataLine">
								<div class="requireInput">
									公司名称:<input value="${it.invoiceEnterpriseName}" isNull="1" codeName="公司名称" type="text" name="invoiceEnterpriseName" placeholder="请输入公司名称" />
								</div>
								<div>
								</div>
							</div>
							<div class="dataLine">
								<div class="requireInput">
									纳税识别号:<input value="${it.invoiceTaxpayerNumber}" isNull="1" codeName="纳税识别号" type="text" name="invoiceTaxpayerNumber" placeholder="请输入纳税识别号" />
								</div>
								<div>
								</div>
							</div>
							<div class="dataLine">
								<div class="requireInput">
									地址、电话:<input value="${it.invoiceAddress}" isNull="1" codeName="地址、电话" type="text" name="invoiceAddress" placeholder="请输入地址、电话" />
								</div>
								<div>
								</div>
							</div>
							<div class="dataLine">
								<div class="requireInput">
									开户行及账号:<input value="${it.invoiceAccount}" isNull="1" codeName="开户行及账号" type="text" name="invoiceAccount" placeholder="请输入开户行及账号" />
								</div>
								<div>
								</div>
							</div>
							{@else if it.invoiceType == 2}
							<div class="dataLine">
								<div class="requireInput">
									公司名称:<input value="${it.invoiceEnterpriseName}" isNull="1" codeName="公司名称" type="text" name="invoiceEnterpriseName" placeholder="请输入公司名称" />
								</div>
								<div>
								</div>
							</div>
							<div class="dataLine">
								<div class="requireInput">
									纳税识别号:<input value="${it.invoiceTaxpayerNumber}" isNull="1" codeName="纳税识别号" type="text" name="invoiceTaxpayerNumber" placeholder="请输入纳税识别号" />
								</div>
								<div>
								</div>
							</div>
							{@/if}
						</div>
					</div>
					
					<div class="dataTitle">
						<img src="../../../res/png/info_icon.png"> 提货信息
					</div>
					<div class="dataLine">
						<a href="javascript:void(0);" class="addBulkstockInfo">添加货物信息</a>
						<table class="table">
							<thead>
								<tr>
									<th>No</th>
									<th>融资编号</th>
									<th>业务类型</th>
									<th>融资货物</th>
									<th>仓库</th>
									<th>监管量（吨）</th>
									<th>提货量(吨)</th>
								</tr>
							</thead>
							<tbody>
								{@each it.bulkstockList as that, index}
								<tr pickupAmount="${that.pickupAmount}" financeId="${that.financeId}">
									<td>
										${index*1 + 1}
										<input type="hidden" name="pickupBulkstockIds" value="${that.pickupBulkstockId}" />
										<input type="hidden" name="locationIds" value="${that.locationId}" />
										<input type="hidden" name="bulkstockNames" value="${that.bulkstockName}" />
										<input type="hidden" name="financeIds" value="${that.financeId}" />
										<input type="hidden" name="financeNumbers" value="${that.financeNumber}" />
										<input type="hidden" name="warehouseNames" value="${that.warehouseName}" />
										<input type="hidden" name="bulkstockInfoIds" value="${that.bulkstockInfoId}" />
										<input type="hidden" name="bulkstockNames" value="${that.bulkstockName}" />
									</td>
									<td>
										${that.financeNumber}</span><br />${that.financeApplicationDate}
										<input type="hidden" name="inventoryIds" value="${that.inventoryId}" />
									</td>
									<td>${getValueByKey(7, it.productType)}</td>
									<td>${that.bulkstockName}(${that.specifician})</td>
									<td>${that.warehouseName}<br />${that.locationArea}/${that.locationName}</td>
									<td class="supervisionQuantity" supervisionQuantity="${that.supervisionQuantity}">
										${that.supervisionQuantity}
										<input type="hidden" name="supervisionQuantitys" value="${that.supervisionQuantity}" />
									</td>
									<td class="pickupQuantity" pickupQuantity="${that.pickupQuantity}">
										<input type="text" name="pickupQuantitys" value="${that.pickupQuantity}" />
									</td>
									<td>
										<input type="hidden" name="bulkstockAmounts" value="${that.bulkstockAmount}" />
									</td>
									<td>
										<input name="interests" type="hidden" value="${that.interest}">
									</td>
									<td>
										<input name="others" type="hidden" value="${that.others}">
									</td>
									<td>
										<input name="pickupAmounts" type="hidden" value="${that.pickupAmount}">
									</td>
								</tr>
								{@/each}
							</tbody>
						</table>
					</div>
					<div class="totalDetail">
						<p style="text-align: center;">
							<td><input value="0" num="1" type="hidden" name="bulkstockAmounts"/></td>
							<td><input value="0" num="1" type="hidden" name="interests"/></td>
							<td><input value="0" num="1" type="hidden" name="others"/></td> 
							<td><span class="pickupAmount" style="display:none;"></span></td> 
						</p>
					</div>
					
					<div class="dataTitle">
						<img src="../../../res/png/info_icon.png"> 附件材料
						<span class="remark requiredInput" style="padding-left: 450px;">*附件上传支持doc/docx/pdf/jpg/png/bmp等文件格式 </span>
					</div>
					<div class="dataLine">
						附件材料：<label class="addfile" for="filesUuid_f2">添加</label><input multiple="multiple" type="file" class="none" name="file" id="filesUuid_f2" /><input value="${it.filesUuid}" type="hidden" name="filesUuid" class="filesUuid" />
					</div>
					<div class="dataLine footBtn">
						<a href="javascript:void(0);" class="sure">提货单修改</a> <a href="javascript:history.go(-1);" class="cancel_s2">取消</a>
					</div>
				</div>
			{@/each}
		</script>
	</div>
</div>